<form #ToolForm="ngForm" (ngSubmit)="onSubmit()"  enctype="multipart/form-data" >
  <div class="form-group form-inline" *ngFor="let inputdata of inputDataArray" >
    
      <div class="input-group">
        <input type="text" onchange="onInputChanged()" readonly class="form-control" [id]="inputdata.name" [value]="DataForUpload.get(inputdata.name)?DataForUpload.get(inputdata.name).name:''" placeholder="please select {{inputdata.name}}">
        <div class="input-group-btn">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="caret"></span></button>
        <ul class="dropdown-menu dropdown-menu-right">
          <li *ngFor="let layer of LayerItems" >{{layer.name}}</li>
        </ul>
      </div><!-- /btn-group -->
    </div><!-- /input-group -->
    <ng4-files-click (filesSelect)="filesSelect($event,inputdata.name,ToolForm)" name="myfiles" >
      <span rolt="button" class="btn btn-default"> file</span>
    </ng4-files-click>
  </div>
  <!-- <button type="submit" [disabled]="DataForUpload.size!==inputDataArray.length"  class="btn btn-default" *ngIf="ToolId">ok</button> -->
</form>

